package com.hpe.pojo;

import java.sql.Timestamp;

/**
 * Created by 李宇寒
 * 2017/9/22 0022 上午 12:08.
 */
public class Offerentity {
    private int oid;
    private Integer stuid;
    private Integer jobid;
    private Timestamp otime;

    public int getOid() {
        return oid;
    }

    public void setOid(int oid) {
        this.oid = oid;
    }

    public Integer getStuid() {
        return stuid;
    }

    public void setStuid(Integer stuid) {
        this.stuid = stuid;
    }

    public Integer getJobid() {
        return jobid;
    }

    public void setJobid(Integer jobid) {
        this.jobid = jobid;
    }

    public Timestamp getOtime() {
        return otime;
    }

    public void setOtime(Timestamp otime) {
        this.otime = otime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Offerentity that = (Offerentity) o;

        if (oid != that.oid) return false;
        if (stuid != null ? !stuid.equals(that.stuid) : that.stuid != null) return false;
        if (jobid != null ? !jobid.equals(that.jobid) : that.jobid != null) return false;
        if (otime != null ? !otime.equals(that.otime) : that.otime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = oid;
        result = 31 * result + (stuid != null ? stuid.hashCode() : 0);
        result = 31 * result + (jobid != null ? jobid.hashCode() : 0);
        result = 31 * result + (otime != null ? otime.hashCode() : 0);
        return result;
    }
}
